#include "stm32f10x.h"                  // Device header
#include "Delay.h"
#include "Usart.h"
#include "Wdg.h"

uint8_t Tx_Array[4];
int main(void)
{
	NVIC_PriorityGroupConfig(NVIC_PriorityGroup_2);
	Usart1_Init();
	Iwdg_Init();
	
	if (RCC_GetFlagStatus(RCC_FLAG_IWDGRST) != RESET)
	{
		printf("iwdg reset cpu\r\n");
	}
	else
	{
		printf("normal reset cpu\r\n");
	}
	RCC_ClearFlag();
	
	while(1)
	{
		Iwdg_Feed();
		Delay_ms(2500);
	}
}


